import { ajaxGet, ajaxPut, ajaxUpload } from "@/http/axios/request"

export const getRoleList = () => {
    return ajaxGet('/admin/role/listsRole')
}

export const addRole = (data: { role_name: string }) => {
    return ajaxUpload('/admin/role/addRole', data)
}

export const updateRole = (data: { role_id: string, role_name: string }) => {
    return ajaxPut('/admin/role/editRole', data)
}